--------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Users\tenni\OneDrive\Desktop\Thesis\Project\Output\Results\InText\log_tot_inj_BO_t
> est.log
  log type:  text
 opened on:   1 May 2024, 00:32:58

. 
. *In-text, p.26: "the overall difference declined (in magnitude) from -0.12 in 2016 to -0.03 in 2
> 022.""
. *"Estimates of the impact of explained variation on overall differences in injury rates are insi
> gnificant for every analysis year except for 2022"
. 
. di "2016 analysis year"
2016 analysis year

. oaxaca log_total_injuries log_ann_empl construction private if year==2016, by(state_dummy) w(1)

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,848
Group 2: state_dummy = 1                        N of obs 2        =        620

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |   1.171906   .0223596    52.41   0.000     1.128082     1.21573
     group_2 |   1.291324   .0413562    31.22   0.000     1.210268    1.372381
  difference |  -.1194182   .0470137    -2.54   0.011    -.2115633   -.0272731
   explained |    .019342   .0304378     0.64   0.525     -.040315     .078999
 unexplained |  -.1387602   .0338017    -4.11   0.000    -.2050103   -.0725101
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |   .0190905   .0299529     0.64   0.524    -.0396162    .0777972
construction |   -.002712   .0024297    -1.12   0.264    -.0074742    .0020501
     private |   .0029635   .0041476     0.71   0.475    -.0051657    .0110927
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |  -.3772789   .1418165    -2.66   0.008    -.6552342   -.0993237
construction |  -.0048109   .0120972    -0.40   0.691    -.0285209    .0188991
     private |   -.068974    .054835    -1.26   0.208    -.1764485    .0385006
       _cons |   .3123036   .1671713     1.87   0.062    -.0153461    .6399534
------------------------------------------------------------------------------

. 
. matrix coeffs = (e(b)[1,4] \ e(b)[1,5])

. 
. forvalues i = 2017/2022{
  2.         di "`i' analysis year"
  3.         oaxaca log_total_injuries log_ann_empl construction private ///
>         if year==`i', by(state_dummy) w(1)
  4.         
.         matrix add_`i' = (e(b)[1,4] \ e(b)[1,5])
  5.         matrix coeffs = (coeffs, add_`i')
  6. }
2017 analysis year

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,847
Group 2: state_dummy = 1                        N of obs 2        =        621

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |   1.133199   .0219943    51.52   0.000     1.090091    1.176307
     group_2 |   1.266144   .0398316    31.79   0.000     1.188076    1.344212
  difference |   -.132945   .0455006    -2.92   0.003    -.2221245   -.0437655
   explained |   .0435376   .0303632     1.43   0.152    -.0159732    .1030483
 unexplained |  -.1764826   .0332504    -5.31   0.000    -.2416522    -.111313
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |    .045391   .0299138     1.52   0.129    -.0132389    .1040208
construction |  -.0031793   .0027567    -1.15   0.249    -.0085824    .0022238
     private |   .0013259   .0039841     0.33   0.739    -.0064828    .0091347
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |   -.209539   .1374831    -1.52   0.127     -.479001    .0599229
construction |  -.0053707   .0118649    -0.45   0.651    -.0286254     .017884
     private |  -.1392346   .0539345    -2.58   0.010    -.2449442    -.033525
       _cons |   .1776617   .1641056     1.08   0.279    -.1439794    .4993028
------------------------------------------------------------------------------
2018 analysis year

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,847
Group 2: state_dummy = 1                        N of obs 2        =        621

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |    1.14363   .0220584    51.85   0.000     1.100396    1.186864
     group_2 |   1.291537   .0402781    32.07   0.000     1.212593     1.37048
  difference |  -.1479067   .0459228    -3.22   0.001    -.2379137   -.0578997
   explained |   .0338067   .0305006     1.11   0.268    -.0259733    .0935868
 unexplained |  -.1817135   .0340987    -5.33   0.000    -.2485457   -.1148813
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |   .0373363   .0300463     1.24   0.214    -.0215534     .096226
construction |  -.0035025   .0030058    -1.17   0.244    -.0093937    .0023887
     private |  -.0000271   .0040532    -0.01   0.995    -.0079713    .0079171
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |  -.1261478   .1427239    -0.88   0.377    -.4058816    .1535859
construction |  -.0061586    .012261    -0.50   0.615    -.0301897    .0178724
     private |  -.0709336   .0558016    -1.27   0.204    -.1803028    .0384355
       _cons |   .0215266    .170278     0.13   0.899    -.3122122    .3552654
------------------------------------------------------------------------------
2019 analysis year

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,848
Group 2: state_dummy = 1                        N of obs 2        =        620

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |   1.121092   .0217665    51.51   0.000     1.078431    1.163754
     group_2 |   1.190231   .0395445    30.10   0.000     1.112725    1.267737
  difference |   -.069139   .0451392    -1.53   0.126    -.1576102    .0193323
   explained |    .043406   .0298862     1.45   0.146    -.0151698    .1019818
 unexplained |  -.1125449   .0331015    -3.40   0.001    -.1774226   -.0476673
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |   .0488497    .029523     1.65   0.098    -.0090143    .1067138
construction |   -.003359    .002924    -1.15   0.251      -.00909    .0023719
     private |  -.0020848   .0040149    -0.52   0.604    -.0099538    .0057843
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |  -.1912856    .137315    -1.39   0.164     -.460418    .0778468
construction |  -.0059691   .0118745    -0.50   0.615    -.0292426    .0173044
     private |  -.0726159   .0540175    -1.34   0.179    -.1784882    .0332563
       _cons |   .1573257   .1641708     0.96   0.338    -.1644432    .4790946
------------------------------------------------------------------------------
2020 analysis year

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,848
Group 2: state_dummy = 1                        N of obs 2        =        620

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |   .9674702   .0210381    45.99   0.000     .9262362    1.008704
     group_2 |   1.060129   .0377938    28.05   0.000     .9860545    1.134203
  difference |  -.0926588   .0432547    -2.14   0.032    -.1774365   -.0078811
   explained |   .0298235   .0280625     1.06   0.288    -.0251779     .084825
 unexplained |  -.1224823   .0316318    -3.87   0.000    -.1844796   -.0604851
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |   .0303028   .0276879     1.09   0.274    -.0239644      .08457
construction |  -.0020243    .001903    -1.06   0.287    -.0057542    .0017056
     private |   .0015451   .0039619     0.39   0.697    -.0062201    .0093102
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |  -.3054606   .1316557    -2.32   0.020    -.5635011   -.0474201
construction |  -.0109922   .0113462    -0.97   0.333    -.0332303    .0112459
     private |  -.1232938   .0514095    -2.40   0.016    -.2240545   -.0225332
       _cons |   .3172643   .1561425     2.03   0.042     .0112306     .623298
------------------------------------------------------------------------------
2021 analysis year

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,848
Group 2: state_dummy = 1                        N of obs 2        =        620

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |   .9699682   .0210765    46.02   0.000     .9286591    1.011277
     group_2 |   1.064573   .0376343    28.29   0.000     .9908113    1.138335
  difference |   -.094605   .0431342    -2.19   0.028    -.1791465   -.0100635
   explained |   .0332392   .0269262     1.23   0.217    -.0195352    .0860136
 unexplained |  -.1278442   .0324225    -3.94   0.000    -.1913912   -.0642972
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |   .0259562   .0260355     1.00   0.319    -.0250724    .0769848
construction |   -.004227   .0036094    -1.17   0.242    -.0113013    .0028473
     private |   .0115099   .0046505     2.48   0.013     .0023952    .0206247
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |  -.3216813   .1334769    -2.41   0.016    -.5832913   -.0600714
construction |   .0000619   .0115434     0.01   0.996    -.0225628    .0226865
     private |  -.1182454    .052783    -2.24   0.025    -.2216982   -.0147926
       _cons |   .3120207   .1585481     1.97   0.049      .001272    .6227693
------------------------------------------------------------------------------
2022 analysis year

Blinder-Oaxaca decomposition                    Number of obs     =      2,468
                                                Model             =     linear
Group 1: state_dummy = 0                        N of obs 1        =      1,849
Group 2: state_dummy = 1                        N of obs 2        =        619

    explained: (X1 - X2) * b1
  unexplained: X2 * (b1 - b2)

------------------------------------------------------------------------------
log_total~es | Coefficient  Std. err.      z    P>|z|     [95% conf. interval]
-------------+----------------------------------------------------------------
overall      |
     group_1 |   .9860665   .0206957    47.65   0.000     .9455036    1.026629
     group_2 |   1.017969   .0357295    28.49   0.000     .9479409    1.087998
  difference |  -.0319029   .0412905    -0.77   0.440    -.1128308    .0490251
   explained |   .0527043   .0280928     1.88   0.061    -.0023565    .1077652
 unexplained |  -.0846072   .0309196    -2.74   0.006    -.1452084    -.024006
-------------+----------------------------------------------------------------
explained    |
log_ann_empl |   .0506657   .0276105     1.84   0.067    -.0034499    .1047813
construction |  -.0028765   .0023457    -1.23   0.220     -.007474     .001721
     private |   .0049151   .0041103     1.20   0.232    -.0031408    .0129711
-------------+----------------------------------------------------------------
unexplained  |
log_ann_empl |  -.0388465   .1227844    -0.32   0.752    -.2794995    .2018065
construction |  -.0115054   .0110075    -1.05   0.296    -.0330797    .0100688
     private |  -.1000042   .0507901    -1.97   0.049    -.1995509   -.0004575
       _cons |    .065749    .148296     0.44   0.658    -.2249059    .3564039
------------------------------------------------------------------------------

. 
. log close
      name:  <unnamed>
       log:  C:\Users\tenni\OneDrive\Desktop\Thesis\Project\Output\Results\InText\log_tot_inj_BO_t
> est.log
  log type:  text
 closed on:   1 May 2024, 00:33:01
--------------------------------------------------------------------------------------------------
